package com.netdisk.service;

import com.netdisk.Domain.FileBean;
import org.apache.hadoop.fs.BlockLocation;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface HDFSService {
    // 创建文件夹
    boolean makeFolder(String path);
    // 是否存在文件
    boolean existFile(String path);

    boolean renameFile(String oldName, String newName);

    boolean deleteFile(String path);

    List<FileBean> listFileByType(Integer Type, String path, HttpServletRequest request);

    List<FileBean> getListFile(String Path,HttpServletRequest request) throws IOException;

    List<FileBean> getListByName(HttpServletRequest request,String fileName);

    Long getSize(String src) throws IOException;
}
